package org.dromara.demo.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.demo.domain.TestDemo3;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 测试关联表视图对象 test_demo3
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TestDemo3.class)
public class TestDemo3Vo implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @ExcelProperty(value = "主键")
  private Long id;

  /**
   * 名称
   */
  @ExcelProperty(value = "名称")
  private String name;

  /**
   * 状态
   */
  @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
  @ExcelDictFormat(dictType = "sys_status")
  private String status;

  /**
   * 值
   */
  @ExcelProperty(value = "值")
  private String remark;

  /**
   * 关联伙伴
   */
  private List<Long> partnerIds;

  /**
   * 关联部门
   */
  private List<Long> deptIds;
}
